/*
 * @Author: FredWang
 * @Date:   2019-1-15 18:36:34
 */
const path = require("path");
const webpack = require("webpack");
function resolve(dir) {
  return path.join(__dirname, dir);
}

module.exports = {
  lintOnSave: true,
  chainWebpack: config => {
    config.resolve.alias.set("@", resolve("src"));
  },

  runtimeCompiler: true,
  baseUrl: "/ued",
  productionSourceMap: true,
  devServer: {
    port: 80,
    host: "0.0.0.0",
    https: false,
    open: true
  },
    configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        $: "jquery",
        jQuery: "jquery",
        "windows.jQuery": "jquery"
      })
    ]
  }
  
};
